const schemas = {
  "addProduct": {
    "responses": {
      "201": {
        "type": "object",
        "properties": {
          "optResult": {
            "description": "值为0，操作成功",
            "type": "number"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "id": {
            "type": "string",
            "description": "产品入库成功编号"
          }
        },
        "required": [
          "optResult",
          "id"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getCreatedProducts": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "products": {
            "type": "array",
            "description": "产品信息列表",
            "items": {
              "type": "object",
              "properties": {
                "productId": {
                  "type": "string",
                  "description": "产品ID"
                },
                "name": {
                  "type": "string",
                  "description": "产品名称"
                },
                "enname": {
                  "type": "string",
                  "description": "产品英文名称"
                },
                "project": {
                  "type": "string",
                  "description": "产品所属项目"
                },
                "description": {
                  "type": "string",
                  "description": "描述"
                },
                "createTime": {
                  "type": "string",
                  "description": "创建日期，格式：2021-03-10 18:33:10"
                }
              },
              "required": [
                "productId",
                "name",
                "enname",
                "project",
                "createTime"
              ]
            }
          }
        },
        "required": [
          "optResult",
          "products"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "modProductId": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getTestProduct": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "products": {
            "type": "array",
            "items": {
              "title": "ProductInfo",
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "productId": {
                    "type": "string",
                    "description": "产品ID"
                  },
                  "name": {
                    "type": "string",
                    "description": "产品名称"
                  },
                  "enname": {
                    "type": "string",
                    "description": "产品英文名称"
                  },
                  "project": {
                    "type": "string",
                    "description": "产品所属项目"
                  },
                  "description": {
                    "type": "string",
                    "description": "描述"
                  },
                  "createTime": {
                    "type": "string",
                    "description": "创建日期，格式：2021-03-10 18:33:10"
                  }
                },
                "required": [
                  "productId",
                  "name",
                  "enname",
                  "project",
                  "createTime"
                ]
              }
            }
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getProductDetail": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "description": "值为0，操作成功",
            "type": "number"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "productInfo": {
            "type": "array",
            "items": {
              "title": "ProductInfo",
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "productId": {
                    "type": "string",
                    "description": "产品ID"
                  },
                  "name": {
                    "type": "string",
                    "description": "产品名称"
                  },
                  "enname": {
                    "type": "string",
                    "description": "产品英文名称"
                  },
                  "project": {
                    "type": "string",
                    "description": "产品所属项目"
                  },
                  "description": {
                    "type": "string",
                    "description": "描述"
                  },
                  "createTime": {
                    "type": "string",
                    "description": "创建日期，格式：2021-03-10 18:33:10"
                  }
                },
                "required": [
                  "productId",
                  "name",
                  "enname",
                  "project",
                  "createTime"
                ]
              }
            }
          },
          "versions": {
            "type": "array",
            "description": "产品版本结构列表。",
            "items": {
              "type": "object",
              "properties": {
                "versionId": {
                  "type": "number",
                  "description": "产品版本ID"
                },
                "version": {
                  "type": "string",
                  "description": "产品版本号"
                }
              },
              "required": [
                "versionId",
                "version"
              ]
            }
          },
          "runningTasks": {
            "description": "正在运行的测试任务的列表。",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "taskId": {
                  "type": "number",
                  "description": "任务ID"
                },
                "operatorName": {
                  "type": "string",
                  "description": "运行人员名称"
                },
                "launchFrom": {
                  "type": "array",
                  "description": "发起方式，可取值：web、jenkins",
                  "items": {
                    "type": "object"
                  }
                },
                "startTime": {
                  "type": "string",
                  "description": "任务开始时间"
                },
                "endTime": {
                  "type": "string",
                  "description": "任务结束时间"
                },
                "duration": {
                  "type": "string",
                  "description": "运行时长"
                },
                "passRate": {
                  "type": "number",
                  "description": "通过率"
                },
                "clusterName": {
                  "type": "string",
                  "description": "运行集群的名字"
                }
              },
              "required": [
                "taskId",
                "operatorName",
                "launchFrom",
                "startTime",
                "endTime",
                "duration",
                "passRate",
                "clusterName"
              ]
            }
          }
        },
        "required": [
          "optResult",
          "productInfo",
          "versions",
          "runningTasks"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "deleteProduct": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getPlatform": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "productUserList": {
            "type": "array",
            "description": "团队成员入库成功编号",
            "items": {
              "type": "object",
              "properties": {
                "userId": {
                  "type": "number",
                  "description": "用户ID"
                },
                "userName": {
                  "type": "string",
                  "description": "用户名"
                }
              },
              "required": [
                "userId",
                "userName"
              ]
            }
          }
        },
        "required": [
          "optResult",
          "productUserList"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "addProductMembers": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "id": {
            "type": "number",
            "description": "成员权限ID"
          }
        },
        "required": [
          "optResult",
          "id"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "modTeamAuth": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getTeamAuth": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "teamAuths": {
            "type": "array",
            "description": "测试团队权限列表",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "number",
                  "description": "权限标识ID"
                },
                "userId": {
                  "type": "number",
                  "description": "团队成员ID"
                },
                "objectW": {
                  "type": "number",
                  "description": "测试对象编辑权限，可取值：0-无权限，1-有权限"
                },
                "objectR": {
                  "type": "number",
                  "description": "测试对象查看权限，可取值：0-无权限，1-有权限"
                },
                "demandW": {
                  "type": "number",
                  "description": "测试需求编辑权限，可取值：0-无权限，1-有权限"
                },
                "demandR": {
                  "type": "number",
                  "description": "测试需求查看权限，可取值：0-无权限，1-有权限"
                },
                "caseW": {
                  "type": "number",
                  "description": "测试用例编辑权限，可取值：0-无权限，1-有权限"
                },
                "caseR": {
                  "type": "number",
                  "description": "测试用例查看权限，可取值：0-无权限，1-有权限"
                },
                "planW": {
                  "type": "number",
                  "description": "测试方案编辑权限，可取值：0-无权限，1-有权限"
                },
                "planR": {
                  "type": "number",
                  "description": "测试方案查看权限，可取值：0-无权限，1-有权限"
                },
                "task": {
                  "type": "number",
                  "description": "测试任务运行权限，可取值：0-无权限，1-有权限"
                }
              },
              "required": [
                "id",
                "userId"
              ]
            }
          }
        },
        "required": [
          "optResult",
          "teamAuths"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "addProductVersion": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "id": {
            "type": "string",
            "description": "产品版本入库成功编号"
          }
        },
        "required": [
          "optResult",
          "id"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "exportOpenAPI": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  }
}

export default schemas;
